@echo off 
for /f "delims=" %%i in (a.txt b.txt) do echo %%i